
void waveformPanel( int pOscId, ControlWindow pWindow, int pX, int pY )
{
  Toggle vTmpToggle;


  vTmpToggle = controlP5.addToggle("Triangle " + pOscId, false, pX, pY, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 304 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Pulse " + pOscId, false, pX, pY + 20, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 305 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Sawtooth " + pOscId, false, pX, pY + 40, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 306 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Noise " + pOscId, false, pX, pY + 60, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 307 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }


  vTmpToggle = controlP5.addToggle("Gate " + pOscId, false, pX + 110, pY, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 300 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Sync " + pOscId, false, pX + 110, pY + 20, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 301 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Ring Mod " + pOscId, false, pX + 110, pY + 40, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 302 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }

  vTmpToggle = controlP5.addToggle("Test " + pOscId, false, pX + 110, pY + 60, 10, 10);
  vTmpToggle.setWindow( pWindow );
  vTmpToggle.setId( 303 + pOscId * 10 );
  if( gUseC64Font )
  {
    vTmpToggle.captionLabel().style().moveMargin(-20, 0, 0, 15);
  }
  else
  {
    vTmpToggle.captionLabel().style().moveMargin(-12, 0, 0, 15);
  }
}

